import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {commissionQuery,commissionAwait} from '@/api/invitation/types'

/**
 * 任务订单信息
 *
 * @param queryParams
 */
export function getCasualOrderPages(queryParams?: commissionQuery): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casualKickback/pages',
    method: 'get',
    params: queryParams,
  });
}
export function getCasualOrderPagesEdit(data?: commissionAwait): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casualKickback/edit',
    method: 'post',
    data: data,
  });
}
